Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/FOUR-10790: Multiplayer support for boundary events #1689

Merged
merged 31 commits into from
Oct 24, 2023

Conversation

agustinbusso
Copy link
Contributor

@agustinbusso agustinbusso commented Oct 12, 2023

Add support for Boundary events in collaborative modeler

  • Handle boundary creation.
  • Handle position change when moving the parent task
  • Handle position change when moving the boundary
  • Handle boundary owner change (when moving a boundary from a task to another)

Related PRs

Screen.Recording.2023-10-12.at.11.10.05.mov
Screen.Recording.2023-10-12.at.16.28.59.mov

boundaryTimerEventId,
];

const boundaryNodes = window.ProcessMaker.$modeler.nodes.filter(node => boundaryEventTypes.includes(node.type));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhmm I'm pretty sure this nodes are available in the store?
Also, window.ProcessMaker.$modeler is a ref I believe also. Can you confirm @rodriquelca

attachedToRef: this.node.definition.get('attachedToRef'),
};

const { paper } = window.ProcessMaker.$modeler;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same goes here, the paper should be available in the store or ref

// Trigger a rendering of the element on the paper
paper.findViewByModel(element).update();
}
attachBoundaryEventToNode(element, data) {
const { paper } = this.modeler;
let node = this.getNodeById(data.attachedToRefId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let node = this.getNodeById(data.attachedToRefId);
const node = this.getNodeById(data.attachedToRefId);

src/portsUtils.js Outdated Show resolved Hide resolved
src/multiplayer/multiplayer.js Outdated Show resolved Hide resolved
@processmaker-sonarqube
Copy link

@ryancooley ryancooley merged commit 267459b into next Oct 24, 2023
@ryancooley ryancooley deleted the feature/FOUR-10790 branch October 24, 2023 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants